package nafos.security

import nafos.security.filter.SessionTimeUpdateFactory
import nafos.server.SpringApplicationContextHolder
import org.springframework.boot.CommandLineRunner
import org.springframework.stereotype.Component

/**
 *@ClassName SecurityWebConfig
 *@Description TODO
 *@Author hxy
 *@Date 2020/1/11 18:21
 */
@Component
class SecurityWebConfig: CommandLineRunner {

    override fun run(vararg args: String?) {
        // 1.注册sessionUpdateHandle,在刷新用户session时间时调用
        SessionTimeUpdateFactory.init(SpringApplicationContextHolder.getContext())
    }

}